class CreateRegistrationCourses < ActiveRecord::Migration
  def self.up
    create_table :registration_courses do |t|
      t.integer :registration_id
      t.integer :course_id
      t.integer :exam_schedule_id
      t.integer :correct
      t.integer :incorrect
      t.integer :unanswer
      t.integer :total
      t.float :percent
      t.integer :time_taken
      t.text :answers
      t.string :grade
      t.timestamps
    end
  end

  def self.down
    drop_table :registration_courses
  end
end
